//
//  GameObject.m
//  MathMastersAsteroids
//
//  Created by Jordon Phillips on 3/5/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "GameObject.h"


@implementation GameObject

@synthesize xPos,yPos,sprite;

//moves the object in the x axis by the amount specified
-(void)moveX:(GLfloat)amount{
	self.xPos+=amount;
	self.sprite.xPos+=amount;
}

//moves the object in the y axis by the amount specified
-(void)moveY:(GLfloat)amount{
	self.yPos+=amount;
	self.sprite.yPos+=amount;
}

-(void)dealloc {
	[sprite release];
	[super dealloc];
}

@end
